<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Queries extends CI_Controller {
    
    public function __construct(){
        parent::__construct();
        
        $this->load->view('header', array('controller' => 'queries'));
    }

    public function index(){
        $this->load->model('Query');
        $data['queries'] = $this->Query->getList();
        $this->load->view('queries/index', $data);
    }
}